package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap5 extends OSMap
	{
		public function OSMap5()
		{
			super();

			var ground:OSGround = new OSGround(0, 600, 400, 480, 0, false);
			ground.setNoErosionDown([460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479]);
			ground.setNoErosionLeft([0, 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400, 420, 440, 460]);
			ground.setNoErosionRight([259, 279, 299, 319, 339, 359, 379, 399, 419, 439, 459, 479]);
			ground.erode();
			add(ground);

			add(new OSMovingBox(200, 520));

			ground = new OSGround(400, 840, 60, 240, 0, false);
			ground.setNoErosionDown([33, 34, 35]);
			ground.setNoErosionLeft([0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33]);
			ground.setNoErosionRight([5, 8, 11, 14, 17, 20, 23, 26, 29, 32, 35]);
			ground.erode();
			add(ground);

			add(new OSFireGround(460, 860));

			ground = new OSGround(460, 880, 200, 200, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
			ground.setNoErosionDown([90, 91, 92, 93, 94, 95, 96, 97, 98, 99]);
			ground.setNoErosionLeft([0, 10, 20, 30, 40, 50, 60, 70, 80, 90]);
			ground.setNoErosionRight([9, 19, 29, 39, 49, 59, 69, 79, 89, 99]);
			ground.erode();
			add(ground);

			ground = new OSGround(640, 860, 20, 20, 0, false);
			ground.erode();
			add(ground);

			ground = new OSGround(660, 840, 60, 240, 0, false);
			ground.setNoErosionDown([33, 34, 35]);
			ground.setNoErosionLeft([3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33]);
			ground.erode();
			add(ground);

			ground = new OSGround(730, 800, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(940, 760, 20, 320, 0, false);
			ground.setNoErosionLeft([9]);
			ground.setNoErosionRight([15]);
			ground.erode();
			add(ground);

			ground = new OSGround(780, 880, 180, 20, 45, false);
			ground.setBorders(true, true);
			addForeground(ground);

		}
	}
}
